import { PermissionTool } from "@/utils/frame/PermissionTool";

export default {
  inserted(el: Node, binding: any) {
    const { value } = binding;

    if (!PermissionTool.hasPermission(value)) {
      el.parentNode && el.parentNode.removeChild(el);
    }
  }
};
